<?php
list($enterdClassNumber, $nowPoint) = $this->requestAction(array('controller' => 'users', 'action' => 'leftUserProfile'));
?>
<div class="section teacher">
	<h2 class="title2">プロフィール</h2>
	<div class="content">
		<a href="<?php echo $this->Html->url(array('controller' => 'users', 'action' => 'mypage'));?>">
			<?php if($this->Session->read('User.icon_image') && $this->Session->read('User.icon_image')!=''): ?>
			<?php echo $this->Html->image(Configure::read('User.upload_path_prefix').$this->Session->read('User.icon_image'), array('alt' => '', 'border' => '0', 'class' => 'avatar')); ?>
			<?php else:?>
			<?php echo $this->Html->image(Configure::read('User.default_icon_image'), array('alt' => '', 'border' => '0', 'class'=>'avatar'));?>
			<?php endif; ?>
		</a>
		<h3 class="name"><?php echo $this->Html->link($this->Session->read('User.name'), array('controller' => 'users', 'action' => 'mypage'));?></h3>
		<p class="headline clearfix"><?php echo $this->Session->read('User.headline'); ?></p>
		<p class="description">今まで <span class="number"><?php echo $enterdClassNumber; ?></span> クラスに参加しました</p>
		<!--<p class="description">今までのポイントは <span class="number"><?php echo $nowPoint; ?> pt</span></p>-->
	</div>
</div>